﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;

namespace WebServerConnectorDll
{
    [DataContract]
    public class HttpResponse
    {
        [DataMember(Order = 0)]
        public string S { get; set; }
        
        [DataMember(Order = 1)]
        public string D { get; set; }

        public void TimeOut()
        {
            S = Failed;
            D = "请求超时";
        }

        public static String Success = "0";
        public static String Failed = "1";
    }
}
